package com.ivan.hospital;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Ivan
 * @date 2021/3/13 18:27
 * @Description:
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.ivan")//扫描swagger的配置
@MapperScan("com.ivan.hospital.mapper")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.ivan")
public class ServiceHospitalApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceHospitalApplication.class, args);
    }
}
